package com.supkong.factory.simple;

/**
 * @author Kong
 * @date 2018/09/25
 * describe:
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        //初始化工厂对象
        SimpleFactory simpleFactory = new SimpleFactory();
        //通过香蕉拿到香蕉对象
        System.out.println(simpleFactory.getName("香蕉").getName());
    }
}
